<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>SYMMETRY: engine::cCommandQueue Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">SYMMETRY
   </div>
   <div id="projectbrief">ENGINEFORSCIENTIFICCOMPUTATION,VISUALIZATIONANDSIMULATION</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classengine_1_1cCommandQueue.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classengine_1_1cCommandQueue-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">engine::cCommandQueue Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="command__queue_8h_source.html">command_queue.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for engine::cCommandQueue:</div>
<div class="dyncontent">
<div class="center"><img src="classengine_1_1cCommandQueue__coll__graph.png" border="0" usemap="#engine_1_1cCommandQueue_coll__map" alt="Collaboration graph"/></div>
<map name="engine_1_1cCommandQueue_coll__map" id="engine_1_1cCommandQueue_coll__map">
<area shape="rect" id="node3" title="STL class. " alt="" coords="37,147,155,224"/></map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8d4177c05ac9c763d526c050d501df08"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d4177c05ac9c763d526c050d501df08"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Put</b> (session_command &amp;command)</td></tr>
<tr class="separator:a8d4177c05ac9c763d526c050d501df08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70a078f46f2e5c0e27db2de65d67d797"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70a078f46f2e5c0e27db2de65d67d797"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Put</b> (session_command &amp;&amp;command)</td></tr>
<tr class="separator:a70a078f46f2e5c0e27db2de65d67d797"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd8ffcd2a0dc1795a5157d11f0883e5c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd8ffcd2a0dc1795a5157d11f0883e5c"></a>
session_command&#160;</td><td class="memItemRight" valign="bottom"><b>Remove</b> ()</td></tr>
<tr class="separator:abd8ffcd2a0dc1795a5157d11f0883e5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a727d36f68de37caba84869e3f973ccbc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a727d36f68de37caba84869e3f973ccbc"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>Empty</b> ()</td></tr>
<tr class="separator:a727d36f68de37caba84869e3f973ccbc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6b95fb876418671d6285ee368abca25"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af6b95fb876418671d6285ee368abca25"></a>
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>GetSize</b> ()</td></tr>
<tr class="separator:af6b95fb876418671d6285ee368abca25"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a21549c27cc7a5833a7a0cae02fdc3bc8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a21549c27cc7a5833a7a0cae02fdc3bc8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>Put_i</b> (session_command &amp;command)</td></tr>
<tr class="separator:a21549c27cc7a5833a7a0cae02fdc3bc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb802d8459ac29daf1c11c0274650fc4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afb802d8459ac29daf1c11c0274650fc4"></a>
session_command&#160;</td><td class="memItemRight" valign="bottom"><b>Remove_i</b> ()</td></tr>
<tr class="separator:afb802d8459ac29daf1c11c0274650fc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c8a6bd8dae5c050634cededcb77ef4d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c8a6bd8dae5c050634cededcb77ef4d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>Empty_i</b> () const </td></tr>
<tr class="separator:a7c8a6bd8dae5c050634cededcb77ef4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b729f6d9866c6e9b50e142f7e475b05"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2b729f6d9866c6e9b50e142f7e475b05"></a>
std::size_t&#160;</td><td class="memItemRight" valign="bottom"><b>GetSize_i</b> () const </td></tr>
<tr class="separator:a2b729f6d9866c6e9b50e142f7e475b05"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a908b7233fca4a42a5a096f76ac4a17eb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a908b7233fca4a42a5a096f76ac4a17eb"></a>
std::queue&lt; session_command &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_Queue</b></td></tr>
<tr class="separator:a908b7233fca4a42a5a096f76ac4a17eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3382d012fe90188199630bef438d7901"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3382d012fe90188199630bef438d7901"></a>
boost::mutex&#160;</td><td class="memItemRight" valign="bottom"><b>m_Mutex</b></td></tr>
<tr class="separator:a3382d012fe90188199630bef438d7901"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7edc3ed909364aca4956ff6b8d95b912"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7edc3ed909364aca4956ff6b8d95b912"></a>
boost::condition_variable&#160;</td><td class="memItemRight" valign="bottom"><b>m_NotEmptyCond</b></td></tr>
<tr class="separator:a7edc3ed909364aca4956ff6b8d95b912"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>thread safe class that implements a commands queue used to keep the command until the worker threads from the pool executes them (half sync half async pattern) used design patterns: thread safe interface, monitor object, half-sync, half-async </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="command__queue_8h_source.html">command_queue.h</a></li>
<li>command_queue.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceengine.html">engine</a></li><li class="navelem"><a class="el" href="classengine_1_1cCommandQueue.html">cCommandQueue</a></li>
    <li class="footer">Generated on Tue Feb 25 2014 17:12:06 for SYMMETRY by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
